package parser;

import java.io.PrintWriter;

/**
 * Stores a Logo Identifier string in a format which can be used by LogoScope
 * This class is also required to check that Identifiers are used in the correct
 * way. Eg "FORWARD LEVEL" LEVEL must be a variable in this context
 */
public class LogoVariable extends LogoIdentifier {
	public LogoVariable(String identifier) {
		super(identifier, LogoIdentifierType.VARIABLE);
	}

	// Both functions are not needed here. This class doesn't fit in with the
	// rest of LogoGrammar's expectations.
	// This is due to some mis-thinking in the initial class design... Avoiding
	// this flaw would be costly in time
	@Override
	public void resolveIdentifiers(LogoScope scope) throws LogoParseException {
	}

	@Override
	public void generatePostScriptCode(PrintWriter stream) {
	}
}
